package com.cmc.cloud.cmclink.doc.vo.sovo.approvespacevo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

import static com.cmes.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;


/**
 * @author lzp
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ApproveSpaceResVO {

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "订舱号")
    private String bookingNo;

    @Schema(description = "订舱状态 下拉框选项来源基础数据 SO Status 0 草稿 1 订舱处理中 2 订舱舱位确认中 3 订舱已确认 4 订舱待补充材料 5 订舱拒绝", example = "2")
    private String soStatus;

    /**
     * 批舱状态列表（包含每个批舱记录的起点、终点及对应状态信息，以字符串形式拼接）
     */
    @Schema(description = "批仓状态")
    private List<String> spaceStatus;

    @Schema(description = "订舱人代码")
    private String bookingParty;

    @Schema(description = "约号S/C NO")
    private String agreementNo;

    @Schema(description = "货类", example = "1")
    private String cargoType;

    @Schema(description = "船名代码")
    private String bookingVessel;

    @Schema(description = "出口航次")
    private String bookingVoyage;

    @Schema(description = "接货地")
    private String porCode;

    @Schema(description = "装货港")
    private String polCode;

    @Schema(description = "卸货港")
    private String podCode;

    @Schema(description = "目的地")
    private String delCode;

    @Schema(description = "预配箱信息")
    private String foreCast;

    @Schema(description = "箱状态", example = "2")
    private String cntrStatus;

    @Schema(description = "箱主代码")
    private String cntrOwner;

    @Schema(description = "remark")
    private String bookingRemark;

    @Schema(description = "运输条款")
    private String shippingTerm;

    @Schema(description = "订舱时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime bookingTime;

    @Schema(description = "预估重量")
    private Long grossWgt;

    @Schema(description = "流程id")
    private Long processInstanceId;

    @Schema(description = "特种货审批状态")
    private String specialCargoStatus;

    @Schema(description = "特种货审批状态")
    private String polEtd;
}
